package iosr11.ui.tags;

import iosr11.data.Student;

import javax.el.ValueExpression;
import javax.faces.component.UIComponent;
import javax.faces.webapp.UIComponentELTag;

import org.apache.myfaces.el.convert.ValueExpressionToValueBinding;


public class StudentInfoTag extends UIComponentELTag{
	private ValueExpression student;
	
	@Override
	public String getComponentType() {
		return "iosr11.ui.tags.StudentInfo";
	}
	
	@Override
	public String getRendererType() {
		return null;
	}
	
	public void setStudent(ValueExpression newValue){ this.student = newValue; }
	
	@Override
	public void setProperties(UIComponent component) {
		super.setProperties(component);
		component.setValueExpression("student", student);
	}

	@Override
	public void release() {
		super.release();
		
		student=null;
	}
}
